package com.ziqing.apeletnews;

import android.app.Application;

import com.orhanobut.hawk.Hawk;
import com.orhanobut.hawk.NoEncryption;

/**
 * Created by abc on 2018-04-28.
 */

public class App extends Application{
    private static App myApplication;


    @Override
    public void onCreate() {
        super.onCreate();
        myApplication = this;
        Hawk.init(this)
                .setEncryption(new NoEncryption())
                .build();

    }


    public static App getMyApplication() {
        if (myApplication == null) {
            myApplication = new App();
        }
        return myApplication;
    }
}
